import {  makeAutoObservable } from 'mobx'
import request from '@/utils/request'
class UserStore{
  constructor(){
    makeAutoObservable(this)
  }
  // 用户信息
  userInfo={}
  // 获取用户信息
  getUserInfo=async ()=>{
    const res= await request({
      url:'/user/profile'
    })
    this.userInfo=res.data
  }

}

export default UserStore